<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script type="text/javascript">
			//window.navigator.userAgent返回字符串，浏览器相关信息
			alert(window.navigator.userAgent)
			
			//地址栏相关属性
			console.log(window.location.href)
			//得到地址栏问号后面的  ?wd="xxx"&age=13
			console.log(window.location.search)
			//得到地址栏#后面的
			console.log(window.location.hash)
		</script>
	</body>

</html>
